﻿using Cofe.Core.Property;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cofe.Core.Security
{
    public class NoPermissionPolicy<T> : IPermissionPolicy<T>
        where T : IProtectedData<T>
    {
        public bool Match(T requestedObj, PermissionType permissionType)
        {
            return true;
        }

        public string[] RequiredRole { get { return new string[] { }; } }        
    }
}
